package com.naver.math;

public class MathTest {
	public static void main(String[] args) {
		long t1 = System.currentTimeMillis();
		System.out.println(Math.log(512)/Math.log(2));
		System.out.println(System.currentTimeMillis() - t1);
		
		t1 = System.currentTimeMillis();
		for (int i = 0; i < Integer.MAX_VALUE; i++) {
			if (512 == Math.pow(2, i)) {
				System.out.println(i);
				break;
			}
		}
		System.out.println(System.currentTimeMillis() - t1);
	}
}
